import QtQuick 2.0

Rectangle {
    id: colorPicker;
    width: 100;
    height: 62;
    signal colorPicked(color clr);

    MouseArea {
        anchors.fill: parent;
        onPressed: {
            colorPicked(parent.color);
            parent.border.width = 2;
            parent.border.color = "white";
        }

        onReleased: {
            parent.border.width = 1;
            parent.border.height = parent.color;
        }
    }
}

